import 'package:app/pages/contract_module/detail_module/contract_detail_model.dart';
import 'package:app/services/address.dart';
import 'package:app/services/dio_manager.dart';
import 'package:get/get.dart';

class ContractDetailControoler extends GetxController{


  ContractDetailModel? model;

  void requestData()async{

    var json = await DioManager().kkRequest('${Address.hrContractRead}/${Get.arguments}',method: 'get');

    ContractDetailModel _model = ContractDetailModel.fromJson(json);

    model = _model;

    update();
  }

  @override
  void onInit() {
    // TODO: implement onInit
    super.onInit();
    requestData();
  }
  
}